import { http } from '@/utils/http'

export default {
  // 获取课程列表
  getCourseLessonList: (params) => http.get('/hall/courseLesson/list', params),
  // 获取个人学习课程
  getUserCourseLessonList: (params) => http.get('/hall/courseLesson/listCourseLessonUser', params),
  // 获取课程详情
  getCourseDetail: (id) => http.get(`/hall/courseLesson/queryById?id=${id}`),
  // 用户课程添加
  addUserCourse: (data) => http.post(`/hall/courseLessonUser/add`, data),
  // 用户课程学习-完成
  completeUserCourse: (data) => http.post(`/hall/courseLessonUser/complete`, data),
}
